This dataset and code allows researchers to replicate the analyses in --

Claassen, C. & McLaren, L. (2021). Does Immigration Produce a Public Backlash or Public Acceptance? Time-Series, Cross-Sectional Evidence from 30 European Democracies. *British Journal of Political Science*

including all tables and figures in the main paper and many of those in the supplementary materials. 

These analyses were run under several versions of R (and required packages), but have been checked and verified using the following software/hardware set up:

R version 4.0.0 (2020-04-24)
Platform: x86_64-apple-darwin17.0 (64-bit)
Running under: macOS Catalina 10.15.7

Matrix products: default
BLAS:   /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libRlapack.dylib

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] MASS_7.3-51.5      plm_2.2-3          psych_1.9.12.31    RColorBrewer_1.1-2 ggplot2_3.3.0      tidyr_1.0.2       
[7] dplyr_0.8.5        texreg_1.37.5     

loaded via a namespace (and not attached):
 [1] Rcpp_1.0.4.6     pillar_1.4.3     compiler_4.0.0   miscTools_0.6-26 tools_4.0.0      digest_0.6.25    lifecycle_0.2.0 
 [8] tibble_3.0.1     gtable_0.3.0     nlme_3.1-147     lattice_0.20-41  pkgconfig_2.0.3  rlang_0.4.5      bibtex_0.4.2.2  
[15] rstudioapi_0.11  maxLik_1.3-8     parallel_4.0.0   stringr_1.4.0    withr_2.2.0      httr_1.4.1       vctrs_0.3.0     
[22] lmtest_0.9-37    gbRd_0.4-11      grid_4.0.0       tidyselect_1.0.0 glue_1.4.0       R6_2.4.1         bdsmatrix_1.3-4 
[29] Rdpack_0.11-1    Formula_1.2-3    purrr_0.3.4      magrittr_1.5     scales_1.1.0     ellipsis_0.3.0   assertthat_0.2.1
[36] mnormt_1.5-6     colorspace_1.4-1 sandwich_2.5-1   stringi_1.4.6    munsell_0.5.0    crayon_1.3.4     zoo_1.8-7 